From: Keir Fraser Date: Tue, 31 Mar 2009 12:20:04 +0000 (+0100) Subject: xend: less noise in xend-debug.log on HVM shutdown X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~39 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=f94d6532fc05a80cf368b8470c90e4ea5b1070ff;p=xen.git xend: less noise in xend-debug.log on HVM shutdown Shutting down a hvm, xend-debug.log always shows: Unhandled exception in thread started by=20 Traceback (most recent call last): File "//usr/lib64/python/xen/xend/image.py", line 549, in _sentinel_watch self._dmfailed(message) File "//usr/lib64/python/xen/xend/image.py", line 491, in _dmfailed xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH) xen.lowlevel.xc.Error: (3, 'No such process') Signed-off-by: Kouya Shimura --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 04689c3eee..239165b55f 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -488,7 +488,10 @@ class ImageHandler: def _dmfailed(self, message): log.warning("domain %s: %s", self.vm.getName(), message) - xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH) + try: + xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH) + except: + pass def recreate(self): if self.device_model is None: